import * as api from '../../service/api'
const state = {
	income : [],
	book : [],
	cancellation : [],
	memberStatistics : {},
  	profitStatistics : {},
  	orderStatistics : {},
}

const getters = {
	income : state => state.income,
	book : state => state.book,
	cancellation : state => state.cancellation,
	memberStatistics : state => state.memberStatistics,
	profitStatistics : state => state.profitStatistics,
	orderStatistics : state => state.orderStatistics,
}

const actions = {


}

const mutations = {
	setIncome (state, obj) {
        state.income = obj;
    },
    setBook (state, obj) {
        state.book = obj;
    },
    setCancellation (state, obj) {
        state.cancellation = obj;
    },
    setMemberStatistics (state, obj) {
        state.memberStatistics = obj;
    },
    setProfitStatistics (state, obj) {
        state.profitStatistics = obj;
    },
    setOrderStatistics (state, obj) {
        state.orderStatistics = obj;
    },
}

export default {
  state,
  getters,
  actions,
  mutations
}
